<?php 
class emclass{
	public $id='';
	public $name='';
	public $birth='';
	public $m=0;
	public $d=0;
	public $y=0;
	public $email='';
	public $dm='';
	
	function newemclass($id,$name,$email,$birth){
		$this->id=$id;
		$this->name=$name;
		$this->email=$email;
		if($birth!=''){
			$this->birth=$birth;
			$mang=split("-", $birth);
			$this->y=$mang[0];
			$this->m=$mang[1];
			$this->d=$mang[2];
			$this->dm=$this->m."-".$this->d;
		}else{
			$this->birth='';
			$this->d=0;
			$this->m=0;
			$this->y=0;
			$this->dm='';
		}
	}
}
?>